﻿using System.Text.Json.Nodes;
using System.Text.Json.Serialization;

namespace SMCL.Core.Utils.Auth.Json
{
    internal class MinecraftAuthResponse
    {
        [JsonInclude, JsonPropertyName("username")]
        public string Username { get; set; }
        [JsonInclude, JsonPropertyName("roles")]
        public JsonNode[] Roles { get; set; }
        [JsonInclude, JsonPropertyName("metadata")]
        public Dictionary<string, JsonNode> Metadata { get; set; }
        [JsonInclude, JsonPropertyName("access_token")]
        public string AccessToken { get; set; }
        [JsonInclude, JsonPropertyName("expires_in")]
        public int ExpiresIn { get; set; }
        [JsonInclude, JsonPropertyName("token_type")]
        public string TokenType { get; set; }
    }
}
